package com.kkwrite.regimen.provider.repository;

import com.kkwrite.regimen.provider.domain.RegUserDO;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by lisha on 2018/7/13 10:38.
 *
 * @author lisha
 */
public interface RegUserRepository extends JpaRepository<RegUserDO, Integer> {
    /**
     * 通过OpenId查询一个User
     * @param openId openId
     * @return User
     */
    RegUserDO findByOpenId(String openId);
}
